package com.stylefeng.guns.common.persistence.dao;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.stylefeng.guns.common.persistence.model.TTrain;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author stylefeng123
 * @since 2018-03-07
 */
public interface TTrainMapper extends BaseMapper<TTrain> {

    List<Map<String, Object>> checkTrainList(Pagination pagination, @Param("beginTime") String beginTime, @Param("endTime") String endTime
            , @Param("name") String name, @Param("status") String status, @Param("dot_id") String dot_id);

    List<Map<String, Object>> checkTrainDirsList(Pagination pagination, @Param("beginTime") String beginTime, @Param("endTime") String endTime
            , @Param("name") String name, @Param("status") String status, @Param("dot_id") String dot_id);

    List<Map<String, Object>> checkTrainZZList(Pagination pagination, @Param("beginTime") String beginTime, @Param("endTime") String endTime
            , @Param("name") String name, @Param("status") String status, @Param("dot_id") String dot_id);

    Map<String, Object> checkTrainZZListGroup(Pagination pagination, @Param("beginTime") String beginTime, @Param("endTime") String endTime
            , @Param("name") String name, @Param("status") String status, @Param("dot_id") String dot_id);

    List<Map<String, Object>> checkTrainDetailList(@Param("batch_no") String batch_no);

    List<Map<String, Object>> checkTrainDisDetailList(@Param("batch_no") String batch_no);

    List<Map<String, Object>> checkTrainZZDetailList(@Param("batch_no") String batch_no);

    List<Map<String, Object>> selectUpFeeid(@Param("batch_no") String batch_no, @Param("use_object") String use_object,@Param("isType") String isType);

    int addFeeBill(Map param);

}
